$(function(){
    "use strict";
    let href = window.location.href;
    let hrefINdex = href.indexOf('=');
    if(hrefINdex>0){
        var pro_id = href.substring(hrefINdex+1);
    }
    $.ajax({
        url:'/Admin/Project/projectB',
        type:'post',
        data:{
            pro_id:pro_id
        },
        success:function(data){
            let datas = data.res
            let htmls = `
                    <li>
                        <span class="CompanyInfo_name">项目编号：</span>
                        <span class="info_span">${datas.reg_sn+datas.pro_sn}</span>
                    </li>
                    <li>
                        <span class="CompanyInfo_name">项目名称：</span>
                        <span class="info_span">${datas.pro_name || '未完善'}</span>
                    </li>
                    <li>
                        <span class="CompanyInfo_name">资本化、费用支出选项：</span>
                        <span class="info_span">${datas.pro_type_name || '未完善'}</span>
                    </li>
                    <li>
                        <span class="CompanyInfo_name">研发形式：</span>
                        <span class="info_span">${datas.pro_method_name || '未完善'}</span>
                    </li>
                    `
                    // if(datas.pro_method_name!='委托研发'){
                    //     htmls +=
                    //         <li>
                    //             <span class="CompanyInfo_name">是否包含委托研发：</span>
                    //             <span class="info_span">${datas.trust_inc_name || '未完善'}</span>
                    //         </li>
                    //         
                    // }
                htmls += `
                    <li>
                        <span class="CompanyInfo_name">研发决算(万元)：</span>
                        <span class="info_span">${datas.pro_total || '未完善'}</span>
                    </li>
                    <li>
                        <span class="CompanyInfo_name">状态：</span>
                        <span class="info_span">${datas.pro_status_name || '未完善'}</span>
                    </li>
            `
            $('#basic_info').children('ul').html(htmls)
        }
    })
})